import request from './request'

/**
 * 获取榜单
 * @returns 
 */
export function getTopList () {
  return request({
    url: '/toplist'
  })
}


/**
 * 获取榜单详情
 * @param {*} id 
 * @returns 
 */
export function getRankingList (id) {
  return request({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}
